//
//  AddPlainTableViewCell.m
//  味·道
//
//  Created by lizi on 15/7/2.
//  Copyright (c) 2015年 WMR. All rights reserved.
//

#import "AddPlainTableViewCell.h"
#import "MaocHeader.h"

@implementation AddPlainTableViewCell
- (void)dealloc
{
    [_dateLabel release];
    [_buttonLabel release];
    [_label release];
    [_str release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self WL_setUpViews];
    }
    return self;
}
- (void)WL_setUpViews{
    _label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH-80, 80)];
    _label.font = [UIFont systemFontOfSize:20];
    _label.numberOfLines = 0;
    [self.contentView addSubview:_label];
    [_label release];
    _buttonLabel = [[UILabel alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-60, 15, 40, 30)];
    _buttonLabel.backgroundColor = [UIColor redColor];
    _buttonLabel.text = self.str;
    _buttonLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_buttonLabel];
    [_buttonLabel release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
